<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
       <%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>回复主题</title>
</head>
<body>
   <%@ include file="/common/islogin.jsp" %>
   <%
     String id = request.getParameter("topicid");
    // request.setAttribute("forumid", id);
   %>
     <%@ include file="/common/header.jsp" %>
     <form action="newresponse">
       <table width="68%" border="0" align="center">
          <tr align="center">
            <td>
              <a href="javascript:history.go(-1);">返回</a>
            </td>
          </tr>
       </table>
       <table width="68%" border="1" align="center">
         <tr align="center">
            <td colspan="2">
                                                发表文章
            </td>
         </tr>
         <tr>
           <td width="15%" align="right">标题</td>
           <td width="85%">
              <input type="text" size="80" name="title">
           </td>
         </tr>
         <tr>
           <td height="285" align="right">
                                        内容
           </td>
           <td>
             <textarea rows="20" cols="80" name="content"></textarea>
             <input type="hidden" name="topicid" value="<%=id %>">
           </td>
         </tr>
         <tr align="center">
           <td colspan="2">
              <input type="submit" value="发表">
              <input type="reset" value="重置">
           </td>
         </tr>
       </table>
     </form>
   <%@ include file="/common/header.jsp" %>
   <%
       if(request.getParameter("title")==""||request.getParameter("content")==""){ 
    	   //如果用户什么都没填
	   out.println("<script language=\"JavaScript\">alert(\"标题或内容不能为空！\")</script>");
	   }
   %>
</body>
</html>